<#include "/includes/son.ftl" >


<script>
    $(function (){
        $("#doSub").click(function (){
            $('#form').ajaxSubmit(function (data) {
                if(data.status==200){
                    lightyear.notify(data.data, 'success', 500);
                }else {
                    lightyear.notify(data.data, 'danger', 100);
                }
                window.location.href = document.referrer;
            })
        })
    })

</script>


<div class="container-fluid" style="margin-top: 15px;">
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
               <form id="form"  action="/goods/shopGoodsType/goodsTypeEditDo" method="post" enctype="multipart/form-data">
                    <div class="form-group">
                        <#if shopGoodsType??>
                        <label>商品ID</label>
                        <input type="text" readonly="readonly" name="id" value="${shopGoodsType.id}"></#if>
                    </div>
                        <div class="form-group">
                            <label for="new-password">分类名称</label>
                            <input type="text" class="form-control" name="typeName" id="typeName" <#if shopGoodsType?? >value="${shopGoodsType.typeName}"</#if>>
                        </div>

                        <input type="button" id="doSub" class="btn btn-primary" value="提交"></input>
                        </form>
                </div>
            </div>
        </div>

    </div>

</div>

